import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//====================合同终止=================================
const request = {
    //基础信息查询
    getInfo (id) {
        return httpGet({
            url: `/subcontract/serviceProcurementStop/getById/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //新增基本信息
    createInfo (params) {
        return httpPost({
            url: '/subcontract/serviceProcurementStop/create',
            params: params,
        })
    },
    //删除基本信息
    deleteInfo (id) {
        return httpGet({
            url: `/subcontract/serviceProcurementStop/removeById/{${id}}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
}

export default request
